package com.schoolgard.entitybean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "MESSAGE_TASK_POOL")
@SequenceGenerator (name="AUTO_ID", sequenceName="AUTO_ID")
public class MessageTaskPool {

	private Long id;
	
	private String schoolName;
	
	private String deviceGuid;
	
	private String alarmLevel;
	
	private String alarmType;
	
	private String alarmInfo;
	
	private Date alarmTime;
	
	private Date nextSendTime;
	
	private String receivers;

	private Integer sendType;
	
	private Integer resendTimes;
	
	private Integer resendInterval;
	
	private Integer sendTimes;

	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 10, scale = 0)
	@GeneratedValue (strategy=GenerationType.SEQUENCE, generator="AUTO_ID")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "SCHOOL_NAME")
	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	@Column(name = "DEVICE_GUID")
	public String getDeviceGuid() {
		return deviceGuid;
	}

	public void setDeviceGuid(String deviceGuid) {
		this.deviceGuid = deviceGuid;
	}

	@Column(name = "ALARM_LEVEL")
	public String getAlarmLevel() {
		return alarmLevel;
	}

	public void setAlarmLevel(String alarmLevel) {
		this.alarmLevel = alarmLevel;
	}

	@Column(name = "ALARM_TYPE")
	public String getAlarmType() {
		return alarmType;
	}

	public void setAlarmType(String alarmType) {
		this.alarmType = alarmType;
	}

	@Column(name = "ALARM_INFO")
	public String getAlarmInfo() {
		return alarmInfo;
	}

	public void setAlarmInfo(String alarmInfo) {
		this.alarmInfo = alarmInfo;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "ALARM_TIME")
	public Date getAlarmTime() {
		return alarmTime;
	}

	public void setAlarmTime(Date alarmTime) {
		this.alarmTime = alarmTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "NEXT_SEND_TIME")
	public Date getNextSendTime() {
		return nextSendTime;
	}

	public void setNextSendTime(Date nextSendTime) {
		this.nextSendTime = nextSendTime;
	}

	@Column(name = "RECEIVERS")
	public String getReceivers() {
		return receivers;
	}

	public void setReceivers(String receivers) {
		this.receivers = receivers;
	}

	@Column(name = "SEND_TYPE")
	public Integer getSendType() {
		return sendType;
	}

	public void setSendType(Integer sendType) {
		this.sendType = sendType;
	}

	@Column(name = "RESEND_TIMES")
	public Integer getResendTimes() {
		return resendTimes;
	}

	public void setResendTimes(Integer resendTimes) {
		this.resendTimes = resendTimes;
	}

	@Column(name = "RESEND_INTERVAL")
	public Integer getResendInterval() {
		return resendInterval;
	}

	public void setResendInterval(Integer resendInterval) {
		this.resendInterval = resendInterval;
	}

	@Column(name = "SEND_TIMES")
	public Integer getSendTimes() {
		return sendTimes;
	}

	public void setSendTimes(Integer sendTimes) {
		this.sendTimes = sendTimes;
	}
}
